package com.woniuxy.mesboot.service.impl;

import com.woniuxy.mesboot.entity.MatType;
import com.woniuxy.mesboot.mapper.MatTypeMapper;
import com.woniuxy.mesboot.service.MatTypeService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class MatTypeServiceImpl implements MatTypeService {
    @Resource
private  MatTypeMapper matTypeMapper;
    @Override
    public List<MatType> selectAll() {
        return matTypeMapper.selectAll();
    }

    @Override
    public int deleteByPrimaryKey(Long id) {
        return matTypeMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(MatType record) {
        return matTypeMapper.insert(record);
    }

    @Override
    public int insertSelective(MatType record) {
        return matTypeMapper.insertSelective(record);
    }

    @Override
    public MatType selectByPrimaryKey(Long id) {
        return matTypeMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(MatType record) {
        return matTypeMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(MatType record) {
        return matTypeMapper.updateByPrimaryKey(record);
    }
}